{
    var a = 0;
    do {
        a += 1
        console.log(a)
    } while (a < 8)
    //先执行do 然后判断
} {
    var a = 0;
    while (a < 8) {
        a += 1
        console.log(a)
    }
    //判断在执行
}

{
    var a = 5
    lable: for (var i = 1; i < a; i++) {
        for (var b = 1; b < a; b++) {
            if (i == 1) {
                continue lable
            }
            console.log(i + "-" + b)
        }
    }
    //continue 跳出 执行lable 位置
}

{
    [].reduce((累计器, 当前值, 当前索引, 源数组) => {}, "初始值");



    [1, 2, 3, 4].reduce((acc, cur, idx, src) => {
        console.log(acc)
        return acc + cur
    }, 10)

    let quchong = [1, 2, 3, 1, 4].reduce((acc, cur, idx, src) => {
        if (!(acc.includes(cur))) {
            acc.push(cur)
        }
        return acc
    }, [])
    console.log(quchong)



}